﻿@{
    ViewBag.Title = "";
    Layout = null;
}

@model UcAsp.Net.Model.AdminUser

<div>
    <input name="ID" type="hidden" name="ID" value="@Model.ID" />
    <p>
        <label>
            登录名</label>          
        <input class="text-input large-input" readonly="readonly" type="text" name="UserName" value="@Model.UserName"  />
    </p>
    <p>
        <label>
            登录密码：</label>
        <input class="text-input large-input" type="text" name="UserPassword" value="@Model.UserPassword" />
    </p>
    <p>
        <span class="btn save" >保存</span>
    </p>
 </div>
 <script>
     $(document).ready(function () {
         $(".save").click(function () {
             $.post("/Admin/CourseSave", { ID: $("input[name='ID']").val(), UserName: $("input[name='UserName']").val(), UserPassword: $("input[name='UserPassword']").val() }, function (dataResult) {
                 location.reload();
             });
         })
     })
 </script>
